//
//  GKZYPostBarLikeTableViewCell.m
//  GKZYAid
//
//  Created by lanou3g on 16/3/14.
//  Copyright © 2016年 GKZYAid. All rights reserved.
//

#import "GKZYPostBarLikeTableViewCell.h"

@implementation GKZYPostBarLikeTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addAllViews];
    }
    return self;
}

- (void)addAllViews
{
    self.likeView = [[LikeView alloc] initWithFrame:CGRectMake(self.frame.size.width * 0.4, self.frame.size.height * 0.02, self.frame.size.width * 0.55, self.frame.size.height * 0.8)];
    [self addSubview:self.likeView];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.likeView.frame = CGRectMake(self.frame.size.width * 0.4, self.frame.size.height * 0.02, self.frame.size.width * 0.55, self.frame.size.height * 0.8);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
